/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ht.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author yy
 * @version 2017-02-27
 */
public class HtClient extends DataEntity<HtClient> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 姓名
	private String email;		// 邮件
	private String address;		// 地址
	private String demand;		// 用户需求
	private String clientCode;		// 客户编号
	private String clientType;		// 客户类型
	private String mobile;		// 手机号码
	private String sex;		// 性别
	
	public HtClient() {
		super();
	}

	public HtClient(String id){
		super(id);
	}

	@Length(min=1, max=64, message="姓名长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=64, message="邮件长度必须介于 1 和 64 之间")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@Length(min=1, max=64, message="地址长度必须介于 1 和 64 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=255, message="用户需求长度必须介于 0 和 255 之间")
	public String getDemand() {
		return demand;
	}

	public void setDemand(String demand) {
		this.demand = demand;
	}
	
	@Length(min=1, max=64, message="客户编号长度必须介于 1 和 64 之间")
	public String getClientCode() {
		return clientCode;
	}

	public void setClientCode(String clientCode) {
		this.clientCode = clientCode;
	}
	
	@Length(min=1, max=11, message="客户类型长度必须介于 1 和 11 之间")
	public String getClientType() {
		return clientType;
	}

	public void setClientType(String clientType) {
		this.clientType = clientType;
	}
	
	@Length(min=1, max=32, message="手机号码长度必须介于 1 和 32 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=0, max=1, message="性别长度必须介于 0 和 1 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
}